package com.cloud.result;

import java.io.Serializable;
import java.util.List;

/**
 * 定义通用分页查询对象的返回对象
 * @author Administrator
 * @param <T>
 *
 */
public class DataResult<T> implements Serializable{
	
	//定义两个参数（查询商品的总记录数、商品List<T>列表）
	private long total;
	
	private List<T> rows;
	
	private List<T> footer;
	
	

	public DataResult(long total, List<T> rows,List<T> footer) {
		super();
		this.total = total;
		this.rows = rows;
		this.footer = footer;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public List<T> getRows() {
		return rows;
	}

	public void setRows(List<T> rows) {
		this.rows = rows;
	}

	public List<T> getFooter() {
		return footer;
	}

	public void setFooter(List<T> footer) {
		this.footer = footer;
	}
	
	
	
}
